import request from '@/utils/request'

// 查询市场拓展列表
export function listExpansion(query) {
  return request({
    url: '/biz/marketExpansion/list',
    method: 'post',
    data: query
  })
}

// 查询市场拓展详细
export function getExpansion(id) {
  return request({
    url: '/biz/marketExpansion/' + id,
    method: 'get'
  })
}

// 新增市场拓展
export function addExpansion(data) {
  return request({
    url: '/biz/marketExpansion',
    method: 'post',
    data: data
  })
}

// 修改市场拓展
export function updateExpansion(data) {
  return request({
    url: '/biz/marketExpansion',
    method: 'put',
    data: data
  })
}

// 删除市场拓展
export function delExpansion(id) {
  return request({
    url: '/biz/marketExpansion/' + id,
    method: 'delete'
  })
}

// 拓展类型
export function getExpansionType(id) {
  return request({
    url: '/biz/marketExpansion/types' ,
    method: 'get'
  })
}
// 导入
export function importMarketExpansion(data) {
  return request({
    url: '/biz/marketExpansion/import',
    method: 'post',
    data: data
  })
}
